home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PWAPG10.ZIP
/
662.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-08-16
|
2KB
|
202 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
;------------------------------------------------------------------------------
Gosub LABEL006
Gosub LABEL001
End
:LABEL001
Gosub LABEL002
INTEGER001 = 1
Gosub LABEL005
BOOLEAN001 = 0
While (BOOLEAN001 == 0) Do
STRING001 = Asc(Inkey())
If (STRING001 == 13) Then
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 76) || (STRING001 == 44)) Then
Gosub LABEL004
Dec INTEGER001
If (INTEGER001 < 1) INTEGER001 = 3
Gosub LABEL005
Continue
Endif
If ((STRING001 == 82) || (STRING001 == 46)) Then
Gosub LABEL004
Inc INTEGER001
If (INTEGER001 > 3) INTEGER001 = 1
Gosub LABEL005
Continue
Endif
If ((STRING001 == 89) || (STRING001 == 121)) Then
Gosub LABEL004
INTEGER001 = 1
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 78) || (STRING001 == 110)) Then
Gosub LABEL004
INTEGER001 = 2
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 65) || (STRING001 == 97)) Then
Gosub LABEL004
INTEGER001 = 3
Gosub LABEL005
BOOLEAN001 = 1
Endif
EndWhile
Gosub LABEL003
Return
:LABEL002
Print ReadLine(PPEPath() + "662.CFG", 1)
INTEGER002 = GetY()
INTEGER003 = GetX()
Print STRING003 + " "
INTEGER004 = GetX()
Print STRING002 + " "
INTEGER005 = GetX()
Print STRING004
Return
:LABEL003
Select Case (INTEGER001)
Case 1
KbdStuff "Y"
Case 2
Newline
Newline
KbdStuff "N"
Case 3
KbdStuff "A"
End Select
Return
:LABEL004
Select Case (INTEGER001)
Case 1
Print Chr(13)
Forward INTEGER003 - 1
Print STRING003
Case 2
Print Chr(13)
Forward INTEGER004 - 1
Print STRING002
Case 3
Print Chr(13)
Forward INTEGER005 - 1
Print STRING004
End Select
Return
:LABEL005
Select Case (INTEGER001)
Case 1
Print Chr(13)
Forward INTEGER003 - 1
Print STRING006
Case 2
Print Chr(13)
Forward INTEGER004 - 1
Print STRING005
Case 3
Print Chr(13)
Forward INTEGER005 - 1
Print STRING007
End Select
Return
:LABEL006
STRING003 = ReadLine(PPEPath() + "662.CFG", 2)
STRING002 = ReadLine(PPEPath() + "662.CFG", 3)
STRING004 = ReadLine(PPEPath() + "662.CFG", 4)
STRING006 = ReadLine(PPEPath() + "662.CFG", 5)
STRING005 = ReadLine(PPEPath() + "662.CFG", 6)
STRING007 = ReadLine(PPEPath() + "662.CFG", 7)
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 28 Goto
; 22 Let
; 16 Print
; 18 If
; 15 Gosub
; 6 Return
; 1 Inc
; 1 Dec
; 2 Newline
; 3 KbdStuff
; 6 Forward
;
;
; ■ Functions used :
;
; 9 +
; 6 -
; 21 ==
; 1 <
; 1 >
; 16 !
; 5 ||
; 6 Chr()
; 1 Asc()
; 1 Inkey()
; 7 PPEPath()
; 7 ReadLine()
; 3 GetX()
; 1 GetY()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 1 While/EndWhile
; 6 If/Then or If/Then/Else
; 3 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------